package com.hl.wuyeguanliIDEA.pojo;

import lombok.Data;

import java.util.Date;

/**
 * 
 * @TableName affair_notice
 */
@Data
public class AffairNotice {
    /**
     * 
     */
    private Integer id;

    /**
     * 
     */
    private String biaoti;

    /**
     * 
     */
    private String content;

    /**
     * 
     */
    private Date createTime;

    /**
     * 
     */
    private String xiaobiaoti;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getBiaoti() {
        return biaoti;
    }

    /**
     * 
     */
    public void setBiaoti(String biaoti) {
        this.biaoti = biaoti;
    }

    /**
     * 
     */
    public String getContent() {
        return content;
    }

    /**
     * 
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * 
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 
     */
    public String getXiaobiaoti() {
        return xiaobiaoti;
    }

    /**
     * 
     */
    public void setXiaobiaoti(String xiaobiaoti) {
        this.xiaobiaoti = xiaobiaoti;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AffairNotice other = (AffairNotice) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getBiaoti() == null ? other.getBiaoti() == null : this.getBiaoti().equals(other.getBiaoti()))
            && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getXiaobiaoti() == null ? other.getXiaobiaoti() == null : this.getXiaobiaoti().equals(other.getXiaobiaoti()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getBiaoti() == null) ? 0 : getBiaoti().hashCode());
        result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getXiaobiaoti() == null) ? 0 : getXiaobiaoti().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", biaoti=").append(biaoti);
        sb.append(", content=").append(content);
        sb.append(", createTime=").append(createTime);
        sb.append(", xiaobiaoti=").append(xiaobiaoti);
        sb.append("]");
        return sb.toString();
    }
}